<?php
namespace app\validate;

use think\facade\Request;
use think\Validate;

class Networks extends  Validate{


    protected $rule =   [

        'name'=> 'require',
        'charge_person'=>'require',
         'mobile'=>'require',

         'address'=>'require',
        'longitude'=>'require',
        'dimension'=>'require',
        // 'business_id'=>'require',

    ];

    protected $message  =   [

        'name.require' => '网点名称不能为空',
        'charge_person.require' => '负责人不能为空',
        'mobile.require' => '联系电话不能为空',
          'address.require' => '地址不能为空',
         'longitude.require' => '经度不能为空',
        'dimension.require' => '维度不能为空',
        'warehouse_reserves.require' => '仓库储量不能为空',
        // 'business_id.require'=>'业务范围不能为空'


    ];
}